home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hardcore Gamer Resource Kit
/
Hardcore Gamer Resource Kit - Disc 2.iso
/
Pc
/
A_C
/
AVFIX1.ZIP
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-01-03
|
2KB
|
79 lines
/* Recreate objects script.
*
* Generated via Object Desktop Package File 'avpkg.opg'.
*/
/* Register with REXX API extensions. */
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
/* Get Installation Path */
Say "-----------Avarice: The Final Saga---------------"
Say "Fixkit #1: Please Read the README.TXT first!"
Say "Please enter in the path to Avarice: The Final Saga"
Say "Example C:\AVARICE"
Parse Upper Pull instpath
/* Get creation disposition. */
Say 'When object exists object creation should:'
Call CharOut, ' (U=Update, R=Replace, F=Fail) : '
Parse Upper Pull Answer
CreateCollision = 'Fail'
If Left( Answer, 1 ) = R Then CreateCollision = 'Replace'
If Left( Answer, 1 ) = U Then CreateCollision = 'Update'
Call CreateObjects
Exit
CreateObject: procedure
Parse Arg Class, Title, Location, Setup, Collision
Say 'Creating ['Title']'
rc = SysCreateObject( Class, Title, Location, Setup, Collision )
If rc <> 1 Then
Say ' > failed to create ['Title' | 'Class'] at location ['Location']'
return rc
CreateObjects:
rc = CreateObject( 'WPFolder',,
'Avarice: The Final Saga',,
'<WP_DESKTOP>',,
'NOPRINT=YES;'||,
'DEFAULTVIEW=CONTENTS;'||,
'HELPPANEL=15685;'||,
'ICONPOS=18,24;'||,
'SELFCLOSE=1;'||,
'ICONFONT=9.WarpSans;'||,
'DETAILSFONT=9.WarpSans;'||,
'TREEFONT=9.WarpSans;'||,
'ICONVIEW=NONGRID,NORMAL;'||,
'DETAILSVIEW=MINI;'||,
'TREEVIEW=LINES,MINI;'||,
'OBJECTID=<Avarice__The_Final_Saga>',,
CreateCollision )
rc = CreateObject( 'WPProgram',,
'Avarice',,
'<Avarice__The_Final_Saga>',,
'NOTDEFAULTICON=YES;'||,
'NOPRINT=YES;'||,
'DEFAULTVIEW=RUNNING;'||,
'EXENAME='instpath'\avarice.exe;'||,
'ICONFILE='instpath'\Avarice.ICO',,
CreateCollision )
rc = CreateObject( 'WPProgram',,
'Avarice: Compatibility Mode',,
'<Avarice__The_Final_Saga>',,
'NOTDEFAULTICON=YES;'||,
'NOPRINT=YES;'||,
'DEFAULTVIEW=RUNNING;'||,
'EXENAME='instpath'\AVARICE.EXE;'||,
'PARAMETERS=23 >error.txt;'||,
'ICONFILE='instpath'\av2.ico',,
CreateCollision )
return